package models

import (
	// "fmt"
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
	"time"
)

type Job struct {
	Id             int       `orm:"column(Id);auto"`
	Name           string    `orm:"column(name);null"`
	Company        string    `orm:"column(company);null"`
	Address        string    `orm:"column(address);null"`
	Province       string    `orm:"column(province);size(11);null"`
	City           string    `orm:"column(city);size(11);null"`
	JobType        int       `orm:"column(jobType);type(int);size(11);null"`
	Department     string    `orm:"column(department);null"`
	Responsibility string    `orm:"column(Responsibility);null"`
	Team_intro     string    `orm:"column(team_intro);size(250);null"`
	Salary_max     int       `orm:"column(salary_max);type(int);size(11);null"`
	Salary_min     int       `orm:"column(salary_min);type(int);size(11);null"`
	CreateByUid    int       `orm:"column(createByUid);null"`
	UpdateByUid    int       `orm:"column(updateByUid);null"`
	CreateDate     time.Time `orm:"column(createDate);auto_now_add;type(datetime);null"`
	UpdateDate     time.Time `orm:"column(updateDate);auto_now;type(datetime);null"`
	Status         int       `orm:"column(status);null"`
}

func init() {
	orm.RegisterModel(new(Job))
}

func (t *Job) TableName() string {
	return "057dg_job"
}
